package org.dromara.merchants.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.merchants.domain.TaSetMeal;
import org.dromara.merchants.domain.vo.TaSetMealVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 套餐Mapper接口
 *
 * @author xiyin321
 * @date 2024-07-07
 */
public interface TaSetMealMapper extends BaseMapperPlus<TaSetMeal, TaSetMealVo> {
    @DataPermission({
        @DataColumn(key = "userName", value = "create_by")
    })
    Page<TaSetMealVo> selectSetMealPage(@Param("page") Page<Object> build, @Param(Constants.WRAPPER) Wrapper<TaSetMeal> taSetMealWrapper);

    Page<TaSetMealVo> selectAppPage(@Param("page") Page<Object> build, @Param(Constants.WRAPPER) Wrapper<TaSetMeal> taSetMealWrapper);
}
